package com.crm.mapper;

import com.crm.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.entity.UserRole;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author crm
 * @since 2020-06-05
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     *该用户的全部信息
     * @param uid  用户的id
     * @return
     */
    List<Role> GetRolesByUserIdLayUI(Integer uid);
    Integer removeUserFromRole(UserRole userrole);
}
